package org.tong.activiti6.serviceTask;

import lombok.extern.slf4j.Slf4j;
import org.activiti.engine.delegate.DelegateExecution;
import org.activiti.engine.delegate.JavaDelegate;

/**
 * @author
 * @date 2022-12-04 15:19
 */
@Slf4j
public class HiSeviceTask implements JavaDelegate {
    @Override
    public void execute(DelegateExecution execution) {
        String id = execution.getId();
        String eventName = execution.getEventName();
        String processInstanceId = execution.getProcessInstanceId();
        log.info("调用了HiServiceTask: id={}, eventName={}, proc_inst_id={}", id, eventName, processInstanceId);
    }
}
